package com.wx.rabbitmq.dao;

import com.wx.rabbitmq.entity.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author wx
 * @Description: 订单dao
 * @date 2018/12/3 000316:14
 */
@Mapper
public interface OrderDao {
    /**
     * @description: 订单入库
     * @author: wx
     * @date: 2018/12/3 0003
     * @param record
     * @return: int
     */
    @Insert("insert into t_order (id, name, message_id) values (#{id}, #{name}, #{messageId})")
    int insert(Order record);
}
